package com.ny.demo429;

import java.util.Scanner;

public class Last {
    public static void main(String[] args) {
        System.out.println("车的价格");
        Scanner scanner = new Scanner(System.in);
        double price = scanner.nextDouble();
        System.out.println("该车的发生的事故次数");
        int number = scanner.nextInt();

        Test02 test02 = new che(number,price);
        double money = test02.chexian();
        System.out.println("你的保费是:"+money);

        System.out.println("请输入房屋价值:");
        double price1 = scanner.nextDouble();
        System.out.println("该房屋的面积:");
        int mianji = scanner.nextInt();

        Test02 test021 = new che(mianji,price1);
        double sum = test021.jiating();
        System.out.println("你的房屋费为:"+sum);
    }
}
